/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package demo928;

/**
 *
 * @author Administrator
 */
public class Student {
  private  String no;
  private  String name;
  private  int score;
  public Student(String no,String name,int score){
           this.no=no;
           this.name=name;
           this.score=Math.abs(score);
                   
  }
  public Student(String no,String name){
           this.no=no;
           this.name=name;
  }
//  public Student(){
//           this.no="125";
//           this.name="zhang";
//  }
  
  public Student(){
           
           
  }
 public void setScore(int score){
//      if(score>=0){
//          this.score=score;
//      }else{
//         this.score=-score;}
// 
      this.score=Math.abs(score);
  }
  public String getNo(){
      return no;
  }
 
  public String getName(){
      return name;
  }
  public int getScore(){
      return score;
  }
  
    public String getInfo(){
        return ("name="+
                name+" no="+no
                +"score="+score);
    }
}
